package reflect;

public class ArgsDemo {
    public static void main(String[] args) {

        //边长参数只能是方法的最后一个参数

        doSome(1,"one");
        doSome(1,"one","two");
        doSome(1,"one","two","three");
        doSome(1,"onw","two","three","four");
        doSome(1,"one","two","three","four","five");


    }
    //public static void doSome(int a,String[] args){}
    public static void doSome(int a,String...args){
        System.out.println(args.length);
    }
}
